//
//  ZYCManageTourRecordViewController.m
//  ZDSC
//
//  Created by ZDTX on 2021/7/18.
//

#import "ZYCManageTourRecordViewController.h"
#import "ZYCElectiveLevelView.h"
#import "ZYCManageTourRecordListViewController.h"

@interface ZYCManageTourRecordViewController ()<ZYCElectiveLevelViewDelegate>


@property (nonatomic, strong) ZYCElectiveLevelView *electiveLevelView;

@end

@implementation ZYCManageTourRecordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"巡堂记录";
    [self.view addSubview:self.electiveLevelView];
}

- (ZYCElectiveLevelView *)electiveLevelView {
    if (!_electiveLevelView) {
        _electiveLevelView = [[ZYCElectiveLevelView alloc] initWithFrame:CGRectMake(0, kNavBarAndStatusBarHeight, kScreenWidth, kScreenHeight - kNavBarAndStatusBarHeight)];
        _electiveLevelView.delegate = self;
    }
    return _electiveLevelView;
}


#pragma mark - ZYCElectiveLevelViewDelegate
- (void)electiveLevelViewDidClick:(ZYCElectiveLevelType)type{
    ZYCManageTourRecordListViewController *vc = [ZYCManageTourRecordListViewController new];
    vc.type = type;
    [self.navigationController pushViewController:vc animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
